package com.fulihui.wgj.admin.api.wxtemplate.vo;

import com.fulihui.common.vo.CommonVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * 自动化任务DTO
 *
 * @author wang_wx
 * @date 2018-08-02
 */
@Getter
@Setter
@ApiModel("模板自动化任务视图")
public class TemplateAutoTaskVO extends CommonVO {

    @ApiModelProperty("主键id")
    private Long id;

    @ApiModelProperty("任务名称")
    private String taskName;

    @ApiModelProperty("启用状态 true/false")
    private Boolean status;

    @ApiModelProperty(value = "周期 1-每天", hidden = true)
    private Integer cycle = 1;

    @ApiModelProperty(value = "发送开启时间 格式：HH:mm:ss")
    private String sendTime;

    @ApiModelProperty(value = "模板跳转url")
    private String jumpUrl;

    @ApiModelProperty("是否小程序 true/false")
    private Boolean miniApp;

    @ApiModelProperty(value = "小程序appid")
    private String miniAppId;

    @ApiModelProperty(value = "小程序url路径")
    private String miniProgramUrl;

    @ApiModelProperty(value = "微信模板id")
    private String templateId;

    /**
     * 记录类型 (0, "SHOP", "电商"),(1, "GAME", "游戏")
     * {@link com.fulihui.common.enums.TemplateLogTypeEnum}
     */
    @ApiModelProperty(value = "记录类型 (0, \"SHOP\", \"电商\"),(1, \"GAME\", \"游戏\")")
    private Integer logType;

    /**
     * 发送条件-request对象转json
     */
    @ApiModelProperty(value = "发送条件(json)")
    private String sendCondition;

    @ApiModelProperty(value = "发送条件描述(前端拼接)")
    private String sendConditionDesc;

    @ApiModelProperty(value = "模板内容")
    private String templateContent;

    @ApiModelProperty(value = "模板发送数据")
    private String templateData;
}